import request from "@/common/untils/request.js";

// 实时预警, 轮询1分钟就可以
export function rtCapture(data) {
  return request({
    url: "/data/api-v/dashboard/rtCapture",
    method: "get",
    data,
  });
}
// 预警中心, 轮询30分钟
export function rtWarning(data) {
  return request({
    url: "/data/api-v/dashboard/rtWarning",
    method: "get",
    data,
  });
}

// 3, 人口统计, 不轮询
export function peopleGroup(data) {
  return request({
    url: "/data/api-v/dashboard/statistics/peopleGroup ",
    method: "get",
    data,
  });
}
// 4, 中间的抓拍总数, 1分钟轮询
// GET    /data/api-v/dashboard/statistics/capture
export function statisticsCapture(data) {
  return request({
    url: "/data/api-v/dashboard/statistics/capture",
    method: "get",
    data,
  });
}
// 5, 重点人员, 轮询5分钟
// GET    /data/api-v/dashboard/statistics/keyPerson
export function statisticsKeyPerson(data) {
  return request({
    url: "/data/api-v/dashboard/statistics/keyPerson",
    method: "get",
    data,
  });
}
// 6， 人口流动, 半年的数据, 不轮询
// GET    /data/api-v/dashboard/statistics/mobilityRate

export function statisticsMobilityRate(data) {
  return request({
    url: "/data/api-v/dashboard/statistics/mobilityRate",
    method: "get",
    data,
  });
}
